<a href="<?php printf(sfConfig::get('app_path_contestant_picture_thumb'), $picture->getThumb())  ?>" target="_blank">
  <img src="<?php printf(sfConfig::get('app_path_contestant_picture_thumb'), $picture->getThumb())  ?>" alt="thumb" /></a>